'use strict';

/* Controllers */
// user list controller
app.controller('UserListController', [ '$scope', '$http', '$state',
		function($scope, $http, $state) {
			$scope.users = [];
			$scope.aTags = [];
			$scope.letters = [];

			$http.post('user/v1/getUserListData').then(function(response) {
				var data = response.data.data;
				var rescode = response.data.rescode;
				console.log(data);
				if (rescode == 100) {
					$scope.users = data.users;
					$scope.aTags = data.aTags;
					$scope.letters = data.letters;
				} else {
				}
			}, function(error) {
			});
		} ]);
